/**
 * Created with IntelliJ IDEA.
 * Description:主体类
 * User: mac
 * Date: 2022-08-30
 * Time: 17:20
 */
public class SeqTableDemo {
    //递归地空间复杂度 = 递归次数
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(0,1);
        myArrayList.add(1,2);
        myArrayList.add(2,3);
        myArrayList.add(3,4);
        myArrayList.display();

        /*myArrayList.setPos(90,99);
        myArrayList.display();*/
        myArrayList.remove(2);
        myArrayList.display();
    }
}
